<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/dianning.tld" prefix="dianning"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="/css/top.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
<link href="/css/index.css" rel="stylesheet" type="text/css" />
<link href="/css/vip.css" rel="stylesheet" type="text/css" />
<link href="/css/avatar.css" rel="stylesheet" type="text/css" />
<link href="/css/validator.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/jquery_last.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/formValidator.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/formValidatorRegex.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/DateTimeMask.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/photoupload.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/popup.js"></script>
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" type="images/gif" href="animated_favicon1.gif" />
<title>点宁网[<dianning:webinfo type="area"/>分类信息]<dianning:webinfo type="area"/>免费发布信息<dianning:webinfo type="poweredby"/></title>
<meta name="Description" content="<dianning:webinfo type="area"/>分类信息网为您提供<dianning:webinfo type="area"/>分类信息，您可以免费发布和查询求职招聘,兼职,房屋出租,二手市场,生活服务,兼职,黄页等分类信息."/>
<meta name="Keywords" content="<dianning:webinfo type="area"/>免费发布信息, <dianning:webinfo type="area"/>分类信息, <dianning:webinfo type="area"/>信息港, <dianning:webinfo type="area"/>热线, <dianning:webinfo type="area"/>免费发布广告，<dianning:webinfo type="area"/>114"/>
</head>
<body>
<div class="bgtop">
<s:include value="/top.jsp" />
</div>
<div class="content">
<s:include value="/WEB-INF/jsp/user/left.jsp" />
<div class="vipr"><h2>商家网店<a href="profile.action?action=vip" style="margin:0px 20px;">网店内容管理</a></h2>
	<ul class="viprheight">
   <div class="caption">
<s:if test="profile.status==0"> 
<h4>请与管理员联系开通个人主页</h4> 
</s:if>
<s:if test="profile.status==3"> 
<h4>您的个人主页己被禁用</h4>
</s:if>
<form name="update" id="update" method="post" action="/user/profile.action">
<s:hidden name="action"/>
<TABLE class=basetb border=0 cellSpacing=0 cellPadding=0 width="100%">
 <TBODY>
 
 
  <TR>
    <TD colspan="2" class="link_hui">    
      说明：
      <ol>
        <li>1、填写下面资料和广告内容，管理员会在30分钟内审核开通</li>
        <li> 2、开通商家网店会免费获得 <br />
          <strong> 二级域名</strong>：如您商家电话02487654321，您获得的域名www.dianning.com/02487654321。
          
          作用直接登录你自己网店，宣传方便。通过电话号记住您的网店（全国不会重复） <br />
          <strong>商家网店</strong>：免费获得您网上店铺，让您的客户随时浏览你最新的商品或服务信息。 <br />
          <strong>点宁平台</strong>：在点宁网上汇聚了同城上万商家网店，在登录其他的网店同时，也会浏览到您的店铺。</li>
        <li>3、网店案例请登录：：<a href="http://www.dianning.com/02477776666" target="_blank">www.dianning.com/02477776666</a>，请在&quot;<font color="#ff0000">域名生成</font>&quot;填写您商家电话号（或手机号）；</li>
        <li>4、填写数字不能添加特殊符号，二级域名为8到11位电话号或手机号，区号后不要加--- </li>
      </ol></TD>
    </TR>

 <s:if test="updatekey==1">
 <TR>
    <TD width="20%">域名生成（<font color="#ff0000">必填</font>）： </TD>
    <TD width="80%"><s:textfield name="webkey" id="webkey" cssClass="text1" />
    <s:hidden name="updatekey" value="1"/>
     <span class="link_hui"> </span>
      <font id="webkeyTip"></font><INPUT id=btnSubmit class=grsub value=保存 type=submit name=btnSubmit /></TD>
 </TR>
 </s:if>
 <s:else>
  <TR style="display:none">
    <TD width="20%">域名生成（<font color="#ff0000">必填</font>）： </TD>
    <TD><s:hidden name="webkey"/><s:hidden name="updatekey" value="0"/><font id="webkeyTip"></font></TD>
 </TR>
 <TR>
    <TD width="20%">域名生成（<font color="#ff0000">必填</font>）： </TD>
    <TD><s:property value="profileDomain"/>/<s:property value="profile.webkey"/> <a href="<s:property value="profileDomain"/>/<s:property value="profile.webkey"/>" target="_blank">进入</a></TD>
 </TR>
</s:else>
</TBODY></TABLE>
</div>
<div class="vipr1">
  <h4>修改网店资料信息</h4></div>
 

<TABLE  class="grpic mt20" border=0 cellSpacing=0 cellPadding=0>
  <TBODY>
  <TR>
    <TD width="20%" align=right><SPAN class=red>*</SPAN> 网店栏头： </TD>
    <TD align=left><s:textfield name="name" id="name" cssClass="text1" size="40"/><span id="nameTip"></span></TD>
</TR>
  <TR>
    <TD align=right><span class="red">*</span> 区&nbsp;&nbsp;&nbsp;&nbsp;域： </TD>
    <TD align=left>
	<s:select list="areaList" name="area" id="area" listKey="key" listValue="value"></s:select>
	<span id="areaTip"></span></TD>
</TR>
<TR>
  <td align="right">经&nbsp;&nbsp;&nbsp;&nbsp;营：</td>
  <td align="left"><s:textfield name="manage" id="manage" cssClass="text1" size="40"/> <span id="manageTip"></span></td>
  </TR>
  <TR>
  <td align="right">公司名称：</td>
  <td align="left"><s:textfield name="companyname" id="companyname" cssClass="text1" size="40"/><span id="companynameTip"></span></td>
  </TR>
<TR>
    <TD align=right><SPAN class=red>*</SPAN> 联&nbsp;系&nbsp;人： </TD>
    <TD align=left><s:textfield name="linkman" id="linkman" cssClass="text1" size="40"/> <span id="linkmanTip"></span></TD>
</TR>
<TR>
    <TD align=right><SPAN class=red>*</SPAN> 联系电话： </TD>
    <TD align=left><s:textfield name="linktel" id="linktel" cssClass="text1" size="40"/><span id="linktelTip"></span></TD>
</TR>
<TR>
  <TD align=right>地&nbsp;&nbsp;&nbsp;&nbsp;址： </TD>
  <TD align=left><s:textfield name="address" id="address" cssClass="text1" size="40"/> <span id="addressTip"></span></TD>
</TR>
<!-- 
<TR>
    <TD align=right>售&nbsp;&nbsp;&nbsp;&nbsp;后：</TD>
    <TD align=left><s:textfield name="service" id="service" cssClass="text1" size="40"/> <span id="serviceTip"></span></TD>
</TR>
<TR>
    <TD align=right><SPAN class=red>*</SPAN> 商家简介： </TD>
    <TD align=left>
    <s:textarea id="about" rows="4" cols="60" name="about"></s:textarea><font id="aboutTip"></font></TD>
 </TR>
 --> 
 <TR>
    <TD align=right><s:textfield name="key1" id="key1" size="8"/>
      ：</TD>
    <TD align=left><s:textfield name="value1" id="value1" cssClass="text1" size="40"/></TD>
</TR>
 <TR>
    <TD align=right><s:textfield name="key2" id="key2" size="8"/>
      ：</TD>
    <TD align=left><s:textfield name="value2" id="value3" cssClass="text2" size="40"/></TD>
</TR>
<TR>
    <TD align=right><s:textfield name="key3" id="key3" size="8"/>
      ：</TD>
    <TD align=left><s:textfield name="value3" id="value3" cssClass="text3" size="40"/></TD>
</TR>
<TR>
    <TD align=right><s:textfield name="key4" id="key4" size="8"/>
      ：</TD>
    <TD align=left><s:textfield name="value4" id="value4" cssClass="text4" size="40"/></TD>
</TR>
  <TR>
    <TD>&nbsp; </TD>
    <TD colSpan=2 align=left><INPUT id=btnSubmit class=grsub value=完成修改 type=submit name=btnSubmit />    </TD></TR></TBODY></TABLE>
<s:if test="updatekey!=1">
<div class="vipr1"><a href="/user/profile.action?action=vip"><img src="/images/use_add1.gif" width="243" height="46" /></a></div>
</s:if>
<h3></h3></ul>
    </div>
    </div>    
<div class="content">
<s:include value="/foot.jsp" />
</div>
<script type="text/javascript">  
$(document).ready(function(){
	$.formValidator.initConfig({formid:"update",errorfocus: true});
	$("#webkey").formValidator({onshow:"请输入商家网站销售电话",onfocus: "只能填写数字"}).regexValidator({ regexp: "^\\S+$", onerror: "请输入商家网站销售电话" }).regexValidator({ regexp: "^[0-9]{8,11}$", onerror: "网站地址为8或11位电话号或手机号，区号后不要加-" });
	$("#name").formValidator({onshow:"请输入网店栏头",onfocus: "4-30个字，不允许填写电话和特殊符号"}).regexValidator({ regexp: "^[\\s\\S]*$", onerror: "不能填写电话和特殊符号！" }).regexValidator({ regexp: "^[\\s\\S]{4,}$", onerror: "网店栏头不足4个字!" }).regexValidator({ regexp: "^(.){4,30}$", onerror: "网店栏头应为4-30个字！" });
	$('#linkman').formValidator({onshow:"请输入联系人",onfocus:'2～6个字，不能填写电话和特殊符号'}).regexValidator({ regexp: "\\S+", onerror: "请输入联系人" }).regexValidator({ regexp: "^(.){2,6}$", onerror: "联系人不足2个字" }).regexValidator({ regexp: "^[\\w\\d\\s\\u4e00-\\u9fa5]*$", onerror: "联系人不能填写特殊符号" });
	$("#linktel").formValidator({onshow:"请填写电话号码",onfocus: "请正确填写电话号码，"}).regexValidator({ regexp: "(^(0\\d{2,3})?-?([2-9]\\d{6,7})(-\\d{1,5})?$)|(^((\\(\\d{3}\\))|(\\d{0}))?(13|14|15|18)\\d{9}$)|(^(400|800)\\d{7}(-\\d{1,4})?$)|(^(95013)\\d{6,8}$)", onerror: "电话填写错误。请参照格式填写：87654321或138********" });
	//$("#about").formValidator({onshow:"请填写商家介绍",onfocus: "10~2000个字之间" }).regexValidator({ regexp: "^[\\s\\S]*$", onerror: "请填写商家介绍" }).regexValidator({ regexp: "^[\\s\\S]{10,}$", onerror: "商家介绍不足10个字" }).regexValidator({ regexp: "^([\\s\\S]){10,2000}$", onerror: "内容应在10~2000个字之间" });

});
<s:if test="#session.code=='webkey_error'">
	ShowAlert('提示','此地址己注册过',340,80);
</s:if>
<s:if test="#session.code=='profile_final'">
	ShowAlert('提示','更新成功',340,80);
</s:if>
</script>
</body>
</html>
